package edu.jptest.bean;

import java.util.Date;

public class User implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer userId;
	private Rank rank;
	private Group group;
	private String userNickname;
	private String userName;
	private String userPassword;
	private Integer userType;
	private String userSex;
	private String userIco;
	private String userEmail;
	private int userScore;
	private Integer testCount;
	private Integer logCount;
	private Integer paperCount;
	private Date regTime;

	// Constructors

	/** default constructor */
	public User() {
	}

	/** full constructor */
	public User(Rank rank, Group group, String userNickname, String userName,
			String userPassword, Integer userType, String userSex,
			String userIco, String userEmail, int userScore, Integer testCount,
			Integer logCount, Integer paperCount, Date regTime) {
		this.rank = rank;
		this.group = group;
		this.userNickname = userNickname;
		this.userName = userName;
		this.userPassword = userPassword;
		this.userType = userType;
		this.userSex = userSex;
		this.userIco = userIco;
		this.userEmail = userEmail;
		this.userScore = userScore;
		this.testCount = testCount;
		this.logCount = logCount;
		this.paperCount = paperCount;
		this.regTime = regTime;
	}

	// Property accessors

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Group getGroup() {
		return group;
	}

	public void setGroup(Group group) {
		this.group = group;
	}

	public String getUserNickname() {
		return this.userNickname;
	}

	public void setUserNickname(String userNickname) {
		this.userNickname = userNickname;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserPassword() {
		return this.userPassword;
	}

	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}

	public Integer getUserType() {
		return this.userType;
	}

	public void setUserType(Integer userType) {
		this.userType = userType;
	}

	public String getUserSex() {
		return this.userSex;
	}

	public void setUserSex(String userSex) {
		this.userSex = userSex;
	}

	public String getUserIco() {
		return this.userIco;
	}

	public void setUserIco(String userIco) {
		this.userIco = userIco;
	}

	public String getUserEmail() {
		return this.userEmail;
	}

	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}

	public int getUserScore() {
		return userScore;
	}

	public void setUserScore(int userScore) {
		this.userScore = userScore;
	}

	public Integer getTestCount() {
		return this.testCount;
	}

	public void setTestCount(Integer testCount) {
		this.testCount = testCount;
	}

	public Integer getLogCount() {
		return this.logCount;
	}

	public void setLogCount(Integer logCount) {
		this.logCount = logCount;
	}

	public Integer getPaperCount() {
		return this.paperCount;
	}

	public void setPaperCount(Integer paperCount) {
		this.paperCount = paperCount;
	}

	public Date getRegTime() {
		return this.regTime;
	}

	public void setRegTime(Date regTime) {
		this.regTime = regTime;
	}

	public Rank getRank() {
		return rank;
	}

	public void setRank(Rank rank) {
		this.rank = rank;
	}
}